/**
 *    @file       clienttask.h
 *
 *    @brief      
 *    @details
 *
 *    @version    1.0
 *    @date       02/21/2014 11:23:47 AM
 *
 *    @author     Theophilus (), wangtf418@gmail.com
 */
#ifndef _SF_CLIENTTASK_H_
#define _SF_CLIENTTASK_H_
#include "servertask.h"

class clienttask : public servertask
{
public:
	clienttask(csocket *sock, netprocessthread *netthread, const comargs *args = NULL);
	virtual ~clienttask();

public:
	virtual bf_int_t init(bf_time_t timeout = SOCKTASK_TIMEOUT, bf_int_t sock_buflen = 102400);
	virtual bf_int_t process_io_event(bf_int_t events);

protected:
	virtual bf_int_t process_recv_packet(bf_char_t *buf, bf_size_t buflen);

protected:
	bf_bool_t m_connect_flag;

};

#endif

